[DOCS] tutorials: move the contract examples to 0.7 - #59
Merged
Conversation
The four tutorials with code all taught the deleted InEuintXX shape. Every affected signature now takes externalEuintXX plus the bytes proof that authenticates it, imports name the new types, and the decrypt builders use withACP and withoutACP. Three examples take two encrypted parameters and now convert them with the plural FHE.asEuint32s form. Those inputs share one batch signature, so converting them one at a time verifies each hash against a signature covering both and reverts, which the old per-value shape would have done silently at runtime. In transfer the proof sits between the handle and the address rather than last, following the rule that the proof immediately follows the handle it authenticates. No client-side encrypt call sites exist in the tutorials, so none needed setConsumingContract. tutorials/overview.mdx had nothing to change. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Last content batch of the 0.7 sweep. Four of the five tutorials carried code;
overview.mdxhad nothing to change.All five were already Vale-clean from #54, so this is purely API correctness.
What changed
Every
InEuintXXsignature becomesexternalEuintXXplus thebytesproof that authenticates it, eachFHE.asEuintXXcall passes both, imports name the new types, and the decrypt builders move towithACP/withoutACP.Scope
No client-side encrypt call sites exist anywhere in
tutorials/, so nothing neededsetConsumingContract.Vale and
lint-docs.pyexit 0 on all four changed files.mint validateandmint broken-links --check-anchors --check-redirectspass.